import { AxiosRequestConfig } from 'axios'

// 扩展 axios 配置
export interface CustomRequestConfig extends AxiosRequestConfig {
    showLoading?: boolean
    showError?: boolean
    retry?: number
    retryDelay?: number
}

// 基础响应结构
export interface BaseResponse<T = any> {
    code: number
    message: string
    data: T
    success: boolean
}

// 分页响应结构
export interface PaginationResponse<T = any> {
    list: T[]
    total: number
    page: number
    pageSize: number
}